import { lazy } from "react";
import { createBrowserRouter } from "react-router-dom";
let Home=lazy(()=>import('../pages/home/Index'))
let Message=lazy(()=>import('../pages/message/Index'))
let Chat=lazy(()=>import('../pages/chat/Index'))
let routes=createBrowserRouter([
    {
        path:'/',
        element:<Home></Home>
    },
    {
        path:'/home',
        element:<Home></Home>
    },
    {
        path:'/message',
        element:<Message></Message>
    },
    {
        path:'/chat',
        element:<Chat></Chat>
    }
])
export default routes